package org.bbb.library1.product;

import org.bbb.library1.perspectives.DemoPerspective;
import org.eclipse.ui.application.WorkbenchAdvisor;

/*******************************************************************************
 * Copyright (c) 2007 Finalist IT Group B.V.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Rob Schellhorn - initial API and implementation
 *******************************************************************************/
//package com.finalist.rcp.internal.product;

import org.eclipse.ui.application.IWorkbenchConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
//import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

//import com.finalist.rcp.internal.ui.perspectives.DemoPerspective;

/**
 * @author Rob Schellhorn
 */
public class DemoWorkbenchAdvisor extends WorkbenchAdvisor {
   
   /*
    * @see org.eclipse.ui.application.WorkbenchAdvisor#createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)
    */
   @Override
   public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
      return new DemoWorkbenchWindowAdvisor(configurer);
   }

   /*
    * @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()
    */
   @Override
   public String getInitialWindowPerspectiveId() {
      return DemoPerspective.PERSPECTIVE_ID;
   }
   
   /*
    * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
    */
   @Override
   public void initialize(IWorkbenchConfigurer configurer) {
      super.initialize(configurer);
      configurer.setSaveAndRestore(true);
   }
}
